{extend name="layout:base" /}
{block name="page_content"}
  <div class="row">
    <div class="col-xs-12">
      <form method="post" action="{:url('resort')}" >
        <table class="table table-striped table-bordered table-hover" id="dynamic-table">
          <thead>
            <tr>
              <th>栏目名</th>
              <th>英文名</th>
              <th>Banner图片</th>
              <th class="center">更新用户</th>
              <th class="center">更新时间</th>
              <th class="center">操作</th>
            </tr>
          </thead>
          <tbody>
            {volist name="$list" id="vo"}
              <tr>
                <td>
                  {$vo.title}
                </td>
                <td>
                  {$vo.name}
                </td>
                <td>
                  <?php if(!empty($vo['pc_banner_path'])): ?>
                    <img src="{$vo.pc_banner_path}" class="img-responsive preview-md">
                  <?php endif; ?>
                </td>
                <td>
                  {$vo.member_name}
                </td>
                <td class="center">
                  {$vo.update_time}
                </td>
                <td class="center">
                  <?php if($auth->check('update')): ?>
                    <a class="green" href="{:url('update', ['id' => $vo['id']])}">
                      <i class="ace-icon fa fa-pencil bigger-130"></i>编辑
                    </a>
                  <?php endif; ?>
                </td>
              </tr>
            {/volist}
          </tbody>
        </table>
      </form>
    </div>
  </div>
{/block}